import request from '@/utils/request'

export function getListPage(data) {
  return request({
    url: 'api/manage/sysRoleInfo/getListPage',
    method: 'post',
    data
  })
}
export function getRoleList(data) {
  return request({
    url: 'api/manage/sysRoleInfo/getList',
    method: 'post',
    data
  })
}

export function getsysMenuList(data) {
  return request({
    url: 'api/manage/sysMenuInfo/getList',
    method: 'post',
    data
  })
}

export function getmenuRoles(data) {
  return request({
    url: 'api/manage/sysMenuInfo/menuRoleList',
    method: 'post',
    data
  })
}

export function addRole(data) {
  return request({
    url: 'api/manage/sysRoleInfo/save',
    method: 'post',
    data
  })
}
export function deleteRole(data) {
  return request({
    url: `api/manage/sysRoleInfo/delByIdentify`,
    method: 'post',
    data
  })
}
export function getUserRoleList(data) {
  return request({
    url: `api/manage/sysUserRoleInfo/getUserRoleList`,
    method: 'post',
    data
  })
}